#ifndef CONTACTDELEGATE_H
#define CONTACTDELEGATE_H

#include <QStyledItemDelegate>

class ContactDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    enum DisplayMode {SmallList, LargeList, SmallPicture, LargePicture};
    explicit ContactDelegate(QObject *parent = 0);

    DisplayMode displayMode() const;
    void setDisplayMode(DisplayMode mode);

    QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;

    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;

signals:

public slots:

private:
    DisplayMode m_displayMode;
};

#endif // CONTACTDELEGATE_H
